package br.com.fbv.distribuidos.model.entidades;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;

public class EntidadeBase {

	protected String ip;
	protected Socket socketCliente;
	protected ObjectInputStream in;
	protected ObjectOutputStream out;

	public EntidadeBase(Socket socketCliente) {
		super();
		this.socketCliente = socketCliente;
		this.ip = this.socketCliente.getInetAddress().getHostAddress();
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Socket getSocketCliente() {
		return socketCliente;
	}

	public void setSocketCliente(Socket socketCliente) {
		this.socketCliente = socketCliente;
	}

	public ObjectInputStream getIn() {
		return in;
	}

	public void setIn(ObjectInputStream in) {
		this.in = in;
	}

	public ObjectOutputStream getOut() {
		return out;
	}

	public void setOut(ObjectOutputStream out) {
		this.out = out;
	}
}
